Update from code changes: document API Playground variables - #6882
Merged
ethanpalm merged 3 commits intoAug 10, 2026
Conversation
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
ethanpalm
reviewed
Aug 10, 2026
ethanpalm
reviewed
Aug 10, 2026
ethanpalm
reviewed
Aug 10, 2026
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
ethanpalm
approved these changes
Aug 10, 2026
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
ethanpalm
deleted the
mintlify/document-api-playground-server-variables
branch
August 10, 2026 21:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the new client API for pre-filling OpenAPI API Playground server variables from custom JavaScript.
Changes
Context
The triggering source change exposes these methods under
window.mintlify.api.playground.https://github.com/mintlify/mint/pull/9823
Note
Low Risk
Documentation-only changes to MDX; no runtime or application code is modified.
Overview
Documents how custom JavaScript can drive OpenAPI server variables in the API Playground via
window.mintlify.api.playground.setServerVariablesandclearServerVariables.The new Set API Playground server variables section explains post-load use cases (auth, tenant switches), that each call replaces runtime overrides with precedence over OpenAPI defaults and saved values, pre-init call queuing, session-scoped behavior until full refresh, and warnings against putting secrets in server variables. Page description and keywords are updated in all four locales; Spanish, French, and Chinese pages add the same guidance with locale-specific detail (e.g. omitted keys, no
localStoragewrites) where the English page is shorter.Reviewed by Cursor Bugbot for commit 049f812. Bugbot is set up for automated code reviews on this repo. Configure here.